package com.gm.tools;

import java.util.ArrayList;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class CalendarParse {
	Document doc;

	public CalendarParse(String html) {
		this.doc = Jsoup.parse(html);
	}

	public String[] parseTime() {
		Elements table = doc.select(".tb-result");
		Elements tds = table.select("td");
		String[] data = new String[tds.size()];
		for (int i = 0; i < tds.size(); i++) {
			data[i] = tds.get(i).text();
		}
		return data;
	}
}